/**
 * 文章分类管理路由
 */
const express = require('express')
const router = express.Router()
const expressJoi = require('@escook/express-joi')

const article_cate_schema = require('../schema/article_cate')
const article_cate_handler = require('../routers_handler/aritcle_cate_handler')


// 获取文章分类列表路由
router.get('/getArticleCateList', article_cate_handler.getArticleCateList)


// 新增文章分类
router.post('/addArticleCate', expressJoi(article_cate_schema.addArticleCate), article_cate_handler.addArticleCate)


// 根据id删除文章分类
router.get('/deleteArticleCate', expressJoi(article_cate_schema.deleteArticleCate), article_cate_handler.deleteArticleCate)


// 根据id查询文章分类
router.get('/searchArticleCate', expressJoi(article_cate_schema.searchArticleCate), article_cate_handler.searchArticleCate)


// 根据id更新文章分类
router.post('/updateArticleCate', expressJoi(article_cate_schema.updateArticleCate), article_cate_handler.updateArticleCate)


module.exports = router